package edu.zqu.specialty.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.zqu.specialty.project.mapper.SpecialtyCourseMapper;
import edu.zqu.specialty.project.service.SpecialtyCourseService;
import edu.zqu.specialty.project.domain.pojo.SpecialtyCourse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 一个专业可以修读的课程的清单 服务实现类
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-24
 */
@Service
public class SpecialtyCourseServiceImpl extends ServiceImpl<SpecialtyCourseMapper, SpecialtyCourse> implements SpecialtyCourseService {
    @Autowired
    SpecialtyCourseMapper specialtyCourseMapper;

    @Override
    public List<SpecialtyCourse> getSpecialtyCourseList() {
        return specialtyCourseMapper.selectList(null);
    }
}
